package com.numberone.system.domain;

import com.numberone.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券表 coupon
 * 
 * @author numberone
 * @date 2020-10-09
 */
public class Coupon extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private Long id;
	/** 类目id */
	private Long typeId;
	/** 优惠券内容 */
	private String title;
	/** 可领取数量 */
	private Long total;
	/** 优惠额度 */
	private BigDecimal discount;
	/** 最低消费 */
	private BigDecimal min;
	/** 状态：0不可领取，1可领取 */
	private Integer status;
	/** 领取开始时间 */
	private Date startTime;
	/** 领取结束时间 */
	private Date endTime;
	/** 有效天数 */
	private Integer days;
	/** 平台：0全平台，1自营平台 */
	private Integer style;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setTypeId(Long typeId) 
	{
		this.typeId = typeId;
	}

	public Long getTypeId() 
	{
		return typeId;
	}
	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}
	public void setTotal(Long total) 
	{
		this.total = total;
	}

	public Long getTotal() 
	{
		return total;
	}
	public void setDiscount(BigDecimal discount) 
	{
		this.discount = discount;
	}

	public BigDecimal getDiscount() 
	{
		return discount;
	}
	public void setMin(BigDecimal min) 
	{
		this.min = min;
	}

	public BigDecimal getMin() 
	{
		return min;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setStartTime(Date startTime) 
	{
		this.startTime = startTime;
	}

	public Date getStartTime() 
	{
		return startTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setDays(Integer days) 
	{
		this.days = days;
	}

	public Integer getDays() 
	{
		return days;
	}
	public void setStyle(Integer style) 
	{
		this.style = style;
	}

	public Integer getStyle() 
	{
		return style;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("title", getTitle())
            .append("total", getTotal())
            .append("discount", getDiscount())
            .append("min", getMin())
            .append("status", getStatus())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("days", getDays())
            .append("style", getStyle())
            .toString();
    }
}
